package la.iok.hzsvn.lewin.movie.core.shopmovie.vo;

import java.util.Objects;

/**
 * 玩家收费项使用的优惠券
 */
public class PlayerFeeCoupon {
    /**
     * 优惠券使用记录id
     */
    private Long id;
    /**
     * 优惠券id,
     */
    private Long couponId;
    /**
     * 优惠券名称
     */
    private String couponName;
    /**
     * 优惠券类型，1：折扣券，2：金额券
     */
    private Integer couponType;
    /**
     * 抵扣金额,单位分
     */
    private Integer amount;

    private Integer userId;

    private Integer couponStatus;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    public Integer getCouponType() {
        return couponType;
    }

    public void setCouponType(Integer couponType) {
        this.couponType = couponType;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getCouponStatus() {
        return couponStatus;
    }

    public void setCouponStatus(Integer couponstatus) {
        this.couponStatus = couponstatus;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof PlayerFeeCoupon)) return false;
        PlayerFeeCoupon that = (PlayerFeeCoupon) o;
        return Objects.equals(id, that.id) && Objects.equals(couponId, that.couponId) && Objects.equals(couponName, that.couponName) && Objects.equals(couponType, that.couponType) && Objects.equals(amount, that.amount)&& Objects.equals(userId, that.userId)&& Objects.equals(couponStatus, that.couponStatus);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, couponId, couponName, couponType, amount);
    }

    @Override
    public String toString() {
        return "PlayerFeeCoupon{" +
                "id=" + id +
                ", couponId=" + couponId +
                ", userId=" + userId +
                ", couponStatus=" + couponStatus +
                ", couponName='" + couponName + '\'' +
                ", couponType=" + couponType +
                ", amount=" + amount +
                '}';
    }
}
